import com.ruoyi.common.utils.http.HttpUtils;

import java.io.File;

public class testFile {

    public static void main(String[] args) {
        String filename = "/upload/2021/08/18/1cd7db95-c727-4aaa-a58b-a89855245eb9.mp4";
        int pos = filename.lastIndexOf("/");
        filename  = filename.substring(0,pos);
        System.out.println(filename);

    }
}
